﻿#include "TcpClientController.h"

namespace Core {

	TcpClientController::TcpClientController(QObject *parent)
		: QObject(parent)
		, m_pAsyncTcpClient(nullptr)
	{
	}

	TcpClientController::~TcpClientController()
	{
	}

	bool TcpClientController::setConnectToServer(QString strTargetIp, int targetPort)
	{
		return m_pAsyncTcpClient->connectToServer(strTargetIp, targetPort);
	}

	void TcpClientController::setDisconnectFromServer()
	{
		m_pAsyncTcpClient->disconnectFromServer();
	}

}//namespace Core